c01 = thisform.mtipo.value c02 = thisform.mnumero.value c03 = thisform.fecha.value c04 = thisform.codigo.value c05 = mzona c06 = thisform.vendedor.value IF thisform.tip_aplic.value ="NA" .AND. mtipo = "DC" c07 = thisform.mtipo.value c08 = thisform.mnumero.value ELSE c07 = thisform.tip_aplic.value c08 = thisform.num_aplic.value ENDIF c09 = thisform.fecha.value c10 = thisform.subtotal.value c11 = thisform.total.value c12 = thisform.comentario.value c13 = thisform.cuenta.value c15 = 0 c16 = thisform.impuesto.value C20 = THISFORM.TIP_FORMA.VALUE txt2 = "(tipo,numero,fecha,cliente,zona,vendedor,tip_aplic,num_aplic,fecha_ven,subtotal,total,comentario,codcta,IMPRESO,COM_LIQUID,BLOQUEADO,BLOQUE1,ASENTADO,FINANCIADO,POSTFECHA,IMPUESTO,TURNO)" txt1 = "values(?c01,?c02,?c03,?c04,?c05,?c06,?c07,?c08,?c09,?c10,?c11,?c12,?c13,?c15,?c15,?c15,?c15,?c15,?c15,?c15,?C16,?C20)" ojj1 = SQLEXEC(gnconnhandle, "INSERT INTO FCDOCUME "+txt2 + txt1)